package com.aiyige.utils;

import okhttp3.ResponseBody;
import retrofit2.Response;

/**
 * Created by zhuyakun on 2018/1/18.
 */

public class RetrofitUtil {
    public static String getResponseBodyAsString(Response<ResponseBody> response) throws Exception {
        return response.isSuccessful() ? response.body().string() : response.errorBody().string();
    }

//    public static boolean is
}
